package com.forum.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.*;
@Component
public class StatisticsDaily {
    @TableId(type = IdType.AUTO)
    private Integer id; // 记录ID
    private LocalDate date; // 日期
    private Integer newUsers; // 新注册用户数
    private Integer newArticles; // 新发布文章数
    private BigDecimal totalRecharge; // 当天充值总额
    private LocalDateTime createdAt; // 记录创建时间

    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public LocalDate getDate() { return date; }
    public void setDate(LocalDate date) { this.date = date; }
    public Integer getNewUsers() { return newUsers; }
    public void setNewUsers(Integer newUsers) { this.newUsers = newUsers; }
    public Integer getNewArticles() { return newArticles; }
    public void setNewArticles(Integer newArticles) { this.newArticles = newArticles; }
    public BigDecimal getTotalRecharge() { return totalRecharge; }
    public void setTotalRecharge(BigDecimal totalRecharge) { this.totalRecharge = totalRecharge; }
    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
}
